home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: newsfeed.acns.nwu.edu!ftpbox!mothost!schbbs!news
- From: Mark Seaborn <cms024@email.mot.com>
- Subject: qsort Getting Warnings
- Content-Type: text/plain; charset=us-ascii
- Organization: MOTOROLA
- Date: Thu, 25 Jan 1996 13:10:05 -0600
- Message-ID: <3107D58D.40D1@email.mot.com>
- X-Mailer: Mozilla 2.0b5 (Macintosh; I; 68K)
- Mime-Version: 1.0
- Content-Transfer-Encoding: 7bit
- Sender: news@schbbs.mot.com (SCHBBS News Account)
- Nntp-Posting-Host: 145.1.202.19
-
- Can someone send me an example of how to call qsort() located in stdlib.h so I don't get warnings. The man page is
- just not cutting it for me.
-
- I have
-
- qsort((void*)summary[i].sortedList, (size_t)numberOfExamples, sizeof(float), attribCompare);
-
- now summary[i].sortedList is a pointer to an array of floats of size numberOfExamples
- attribCompare is just a function that returns an integer. The program works but I hate
- warnings. Any ideas would be helpful.
- --
- *********************************************************************
- * Mark Seaborn | ITTTools : mseaborn@itthp1.comm.mot.com *
- * Motorola | KU : mseaborn@hawk.cs.ukans.edu *
- * 1301 E. Algonquin Rd. | Macintosh : cms024@email.mot.com *
- * Schaumburg, IL. 60196 | Voice : 708/538-5303 *
- * Maildrop: IL02/Rm0442 | Fax : 708/576-2619 *
- *********************************************************************
- * AKA : Conan the Saute' Man *
-